package grape.base.rest.message.vo;
import grape.base.service.dict.api.IDictService;
import grape.common.rest.vo.BaseIdVo;

import grape.common.service.trans.TransBy;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 消息内容模板表
 * </p>
 *
 * @author yangwei
 * @since 2020-03-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="消息内容模板数据响应对象")
public class MessageTemplateVo extends BaseIdVo<String> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编码，不能重复")
    private String code;

    @ApiModelProperty(value = "模板名称")
    private String name;

    @ApiModelProperty(value = "标题模板")
    private String templateTitle;

    @ApiModelProperty(value = "内容模板")
    private String templateContent;

    @ApiModelProperty(value = "分类id")
    private String typeDictId;

    @TransBy(type = IDictService.trans_dictName,byFieldName = "typeDictId")
    @ApiModelProperty(value = "分类名称")
    private String typeDictName;

    @ApiModelProperty(value = "备注")
    private String remark;


}
